#ifndef EVENTS_H
#define EVENTS_H

#include<list>
#include<fstream>
#include<iostream>
#include<cstdlib>

using std::list;
using std::ifstream;
using std::cerr;
using std::endl;

struct event{
	int vn_id;
	char type;
	int time;
};

bool compare_events( struct event evt1, struct event evt2 ){
	if( evt1.time == evt2.time )
		return evt1.type == 'S';
	return evt1.time < evt2.time;
}

class Events{
	public:
		Events();
		struct event getNextEvent();
		int eventsLeft();
		
	private:
		list<struct event> events;
};

#include "events.cpp"

#endif